package com.example.demo.service;

import com.example.demo.common.utills.CommonResult;
import com.example.demo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    //查询所有用户
    CommonResult selectAllUser(int pageNum,int pageSize,String username,int uid);

    //新增用户
    CommonResult addUser(User user);

    //删除用户
    CommonResult deleteUser(int uid);

    //重置密码
    CommonResult resetPsd(String psd,String account);

    //发送验证码
    CommonResult sendMes(String account,String phone) throws Exception;

    //忘记密码
    CommonResult forgetPsd(String account,String phone,String code);
}
